#ifndef __MID_CAMERA_H__
#define __MID_CAMERA_H__

#include <stdint.h>

#define OUTPUT_FILE "/root/ruitong/photo.jpg"

enum {
    cam_focus_manual                        = 0,                                    // bsp_v4l2.h 有个地方对应了值
    cam_focus_auto,
};
typedef uint8_t mid_cam_focus_t;

typedef struct {
    mid_cam_focus_t     tAutoFocus;         // 焦距控制 (0-manual 1-auto)
    int32_t             iFocus;             // 焦距 (手动模式下可用)
    int32_t             iContrast;          // 对比度
}camera_set_t;

const char *mid_get_cam_err_str(int32_t err_code);
int32_t mid_cam_capture_photo(camera_set_t tData);

#endif  // __MID_CAMERA_H__